package com.cts.learninglibrary.mapper;

import com.cts.learninglibrary.dto.ShareDTO;
import com.cts.learninglibrary.pojo.Share;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * @author: kwanghuee
 * @date: 2020/8/18 9:28
 */
@Mapper
public interface ShareMapper {

    /**
     * 查询全部分享
     * @return
     * @param map
     */
    List<Share> queryByParam(Map map);

    /**
     * 保存分享
     * @param shareDTO
     * @return
     */
    int saveShare(ShareDTO shareDTO);
}
